<!DOCTYPE html>
<html>
<head>
    <title>用户订单表 </title>
		<#include "/header.html">
</head>
<body>
<div id="webpage" v-cloak>
    <div v-show="appearance.showList">
        <div v-show="appearance.showControllBar" class="grid-btn">
            <span v-show="appearance.showSearchForm">
                <div class="form-group col-sm-2">
                    <input type="text" class="form-control" v-model="q._keyword" @keyup.enter="query" placeholder="关键字">
                </div>
                <a class="btn btn-default" @click="query">查询</a>
            </span>

			<#if shiro.hasPermission("user:userorder:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("user:userorder:update")>
            <a class="btn btn-primary" @click="update(null,$event)"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("user:userorder:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!appearance.showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.uid" placeholder="用户编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付接口类型 alipay,weixin,other</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.peymentType" placeholder="支付接口类型 alipay,weixin,other"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付平台流水号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.outTradeNo" placeholder="支付平台流水号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型 购买=1,充值=2,退款=-1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.type" placeholder="类型 购买=1,充值=2,退款=-1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">购买金币=coin,购买礼物=gift,购买会员=vip</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.objectName" placeholder="购买金币=coin,购买礼物=gift,购买会员=vip"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.objectId" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易状态 交易状态, 默认等待确认0, 1成功, 2失败</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.state" placeholder="交易状态 交易状态, 默认等待确认0, 1成功, 2失败"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单总额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.amount" placeholder="订单总额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品总数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.quantity" placeholder="商品总数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单抬头</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.subject" placeholder="订单抬头"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单备注内容</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.remark" placeholder="订单备注内容"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户端 android,ios</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.platform" placeholder="客户端 android,ios"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易成功时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.notifyDate" placeholder="交易成功时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userOrder.adddate" placeholder="创建时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script>
    var searchPara = window.location.search;
    var requestParameters={};
    if(!!searchPara){
        requestParameters['uid']=searchPara.getParameter("uid");
    }
</script>
<script src="${request.contextPath}/statics/js/modules/user/userorder.js?_${.now?long}"></script>
</body>
</html>